<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/animate.min.css">
<script src="./js/swiper.animate1.0.3.min.js"></script>
<link rel="stylesheet" href="./bootstrap/css/bootstrap.css">
<script src="./js/jquery-3.5.1.min.js" type="text/javascript"></script>
<script src="./bootstrap/js/bootstrap.js"></script>
<script src="./js/jq22.js"></script>
<link rel="stylesheet" href="./css/jq22.css">
<link rel="stylesheet" href="./css/swiper.min.css">
<script src="./js/swiper.min.js"></script>

<title>Document</title>
</head>
<style>
body{position: relative;}
html{font-size: 10px;}
.first li{float: left;list-style-type: none;padding-left: 20px;}
#menu-line{z-index: 1000;}
.swiper-button-prev,.swiper-button-next{
display: none;
}
.swiper-container{
width: 100%;
height: 280px;
}
.ooe img{position: absolute;
             top: 200px;
             left: 25%;}
.nth1{background-image: url("./image/wp1-1.jpg");background-size: cover;}
.nth2{background-image: url("./image/wp1-2.jpg");background-size: cover;}
.nth3{background-image: url("./image/wp1-3.jpg");background-size: cover;}
.nth4{background-image: url("./image/wp1-4.jpg");background-size: cover;}
.nth5{background-image: url("./image/wp1-5.jpg");background-size: cover;}
.nth6{background-image: url("./image/wp1-6.jpg");background-size: cover;}
</style>
<body data-spy="scroll">
<div class="contain">
<nav class="navbar-fixed-top header" id="mynav">
    <div class="container-fluid">
        <div class="row first">
            <div class="col-md-4" style="font-size: 4rem;font-weight: 900;float: left;color:cadetblue;margin-left: 40px;">qianzhu千助</div>
            <div class="col-md-4 first" id='cssmenu'>
                <ul class="nav navbar-nav">
                <li class="active"><a href="#one">首页</a></li>
                <li><a href="#two">案例</a></li>
                <li><a href="#three">业务</a></li>
                <li><a href="#four">运营</a></li>
                <li><a href="#five">联系</a></li>
            </ul>
            </div>
            <div class="col-md-4">
                <span class="glyphicon glyphicon-user" aria-hidden="true" style="font-size: 4rem;color: cadetblue;margin-left: 350px;">17717153849</span>
            </div>
            </div>
        </nav>
    </div>
    <ul class="main">
    <div id="one">
    <div class="swiper-container">
        <div class="swiper-wrapper ooe">
            <div class="swiper-slide nth1" >
                <img src="./image/wp1-1-r.png" alt="" class="ani" swiper-animate-effect="bounceInRight"  swiper-animate-duration="1s">
            </div>
            <div class="swiper-slide nth2">
                <img src="./image/wp1-2-r.png" alt="" class="ani" swiper-animate-effect="zoomIn"  swiper-animate-duration="1s">
            </div>
            <div class="swiper-slide nth3">
                <img src="./image/wp1-3-r.png"   alt="" class="ani" swiper-animate-effect="slideInDown"  swiper-animate-duration="1s">
            </div>
            <div class="swiper-slide nth4">
                <img src="./image/wp1-4-r.png"   alt="" class="ani" swiper-animate-effect="fadeInUpt"  swiper-animate-duration="1s">
            </div>
            <div class="swiper-slide nth5">
                <img src="./image/wp1-5-r.png"  alt="" class="ani" swiper-animate-effect="bounceInUp"  swiper-animate-duration="1s">
            </div>
            <div class="swiper-slide nth6">
                <img src="./image/wp1-6-r.png"  alt="" class="ani" swiper-animate-effect="fadeIn"  swiper-animate-duration="1s">
            </div>
        </div>
        <!-- 如果需要分页器 -->
        <div class="swiper-pagination"></div>
        
        <!-- 如果需要导航按钮 -->
        <div class="swiper-button-prev"></div>
        <div class="swiper-button-next"></div>
        
        <!-- 如果需要滚动条 -->
        <div class="swiper-scrollbar"></div>
    </div>
    </div>
    <section id="two">
    
    </section>
    <section id="three">
    
    </section>
    <section id="four">
    
    </section>
    <section id="five">
    
    </section>
    </ul>
</div>
<script>
    $("section").css({'height':$(window).height()+'px'})
    $(".swiper-container").css({'height':$(window).height()+'px'})
    var mySwiper = new Swiper ('.swiper-container', {
direction: 'horizontal', // 垂直切换选项
loop: false, // 循环模式选项
autoplay:true,
delay: 3000,
speed:2500,
// 如果需要分页器
pagination: {
    el: '.swiper-pagination',
},

// 如果需要前进后退按钮
navigation: {
    nextEl: '.swiper-button-next',
    prevEl: '.swiper-button-prev',
},

// 如果需要滚动条
scrollbar: {
    el: '.swiper-scrollbar',
},
on:{
    init: function(){
    swiperAnimateCache(this); //隐藏动画元素 
    swiperAnimate(this); //初始化完成开始动画
    }, 
    slideChangeTransitionEnd: function(){ 
    swiperAnimate(this); //每个slide切换结束时也运行当前slide动画
    //this.slides.eq(this.activeIndex).find('.ani').removeClass('ani'); 动画只展现一次，去除ani类名
    } 
}
})   

$(".swiper-container").mouseenter(function(){
    $(".swiper-button-prev").css('display','block'),
    $(".swiper-button-next").css('display','block');
})   
$(".swiper-container").mouseleave(function(){
    $(".swiper-button-prev").css('display','none'),
    $(".swiper-button-next").css('display','none');
})   
</script>
</body>
</html>